/*
 * Lab5B.cpp
 *
 *  Created on: 2012-01-08
 *      Author: Anthony Varghese
 * Description: Simple program that uses dynamic memory allocation to exhaust the heap.
 */

#include <iostream>

using namespace std;

int main(){
	const int SIZE = 1000;
	typedef int* IntPointer;

	IntPointer ip;

	do {
		ip = new int[ SIZE ];
		cout << "Memory allocated " << endl << flush;
	} while (ip != NULL);

}


